package com.dingyx.ps.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@Service
public class PSOrderVendoutService extends PostStationRequest{

    private String serviceName = "order.vendout";

    private String notifyUrl = "https://xzqgh.cn/app/notifyUrl";

    Map<String, Object> params = new HashMap<>();
    /**
     * 获取点位
     */
    public String openApiMethod(){
        params.put("service", serviceName);
        return super.openApiMethod(params);
    }

    public String openApiMethod(String orderSeq){
        params.put("notify_url", notifyUrl);
        params.put("order_seq", orderSeq);
        return openApiMethod();
    }
}
